<script setup lang="ts">
	import { onLaunch } from "@dcloudio/uni-app"
	import { getStorage } from "./utils/storage"
	import { setLanguage } from "./utils/i18n"


	onLaunch(() => {
		let lang = getStorage("lang")
		if (!lang) {
			setLanguage(uni.getLocale())
		} else {
			setLanguage(lang)
		}
	})
	
	
</script>




<style>
	/* 图标必须 */
	@import url(@/uni_modules/tm-ui/css/remixicon.min.css);
	/* 自定预处理类，可选 */
	@import url(@/uni_modules/tm-ui/css/tmui.css);
</style>